package com.everspring.mapstruct.use.controller;

import com.everspring.mapstruct.use.service.MappingServiceImpl;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * Description： TODO
 * Date： 2020/9/15 17:52
 *
 * @author changchun.xue
 */
@RestController
@RequestMapping("test")
public class MappingController {
    @Resource
    private MappingServiceImpl mappingService;

    @GetMapping("/toVo")
    public String testToVo() {
        mappingService.mappingVo();
        return "success";
    }
}
